#!/bin/bash
#set -x
dir="$1"
if [[ "$dir" = "-d" ]] ; then
	cdir="$2"
	ndir=${cdir##$bdir}
	mkdir -p "$tdir/$ndir"
	exit 
fi
cfn="$2"
nfn="$tdir/${cfn##$bdir}"
if [[ "$dir" = "-c" ]] ; then
sed -e "s#http://afriware.net#file:///C:$HOME/src/afriwarestore#g" \
-e "s#http://www.afriware.net#file:///C:$HOME/src/afriwarestore#g" "$cfn" > $nfn
else
cp "$cfn" "$nfn"
fi
